package com.neusoft.neuiotms.dcam.fixed.vo;

import java.util.Date;

import org.hibernate.validator.constraints.Length;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.handler.inter.IExcelDataModel;
import cn.afterturn.easypoi.handler.inter.IExcelModel;
import lombok.Getter;
import lombok.Setter;

@Setter
@Getter
public class StockQueryExportVO implements IExcelDataModel, IExcelModel {

    /** 备件类型名称 */
    @Excel(name = "备件类型名称", orderNum = "0")
    private String spareTypeName;

    /** 货品信息 */
    @Excel(name = "货品名称", orderNum = "1")
    private String goodsFileName;

    /** 规格型号 */
    @Excel(name = "规格型号", orderNum = "2")
    private String specification;

    /** 数量 */
    @Excel(name = "数量", orderNum = "3")
    private Integer number;

    /** 存放库房 */
    @Excel(name = "存放库房", orderNum = "4")
    private String storehouseName;

    /** 批次信息 */
    @Length(max = 100, message = "批次信息不能超过{max}位")
    @Excel(name = "批次", orderNum = "5")
    private String batch;

    /** 供应商 */
    @Excel(name = "供应商", orderNum = "6")
    private String manufacturerName;

    /** 单价 */
    @Excel(name = "单价", orderNum = "7")
    private Double unitPrice;

    /** 应用资产分类 */
    @Excel(name = "应用资产分类", orderNum = "8")
    private String applyAssetTypeName;

    @Excel(name = "创建时间", width = 25, format = "yyyy-MM-dd HH:mm:ss", orderNum = "9")
    private Date createTime;

    @Excel(name = "更新时间", width = 25, format = "yyyy-MM-dd HH:mm:ss", orderNum = "10")
    private Date updateTime;

    private int rowNum;

    private String errorMsg;

    @Override
    public Integer getRowNum() {
        return this.rowNum;
    }

    @Override
    public void setRowNum(final Integer rowNum) {
        this.rowNum = rowNum;
    }

    @Override
    public String getErrorMsg() {
        return this.errorMsg;
    }

    @Override
    public void setErrorMsg(final String errorMsg) {
        this.errorMsg = errorMsg;
    }

}
